package com.miaoxun.domain.model;

import java.util.List;

public class TableModel extends BaseModel {
    private long total;
    private List<?> rows;

    public TableModel() {
    }

    public TableModel(long total, List<?> rows) {

        this.total = total;
        this.rows = rows;
    }

    public long getTotal() {

        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<?> getRows() {
        return rows;
    }

    public void setRows(List<?> rows) {
        this.rows = rows;
    }

    public static TableModel TABLE(long total, List<?> rows) {
        return new TableModel(total, rows);
    }
}
